package br.com.management.mentor.model.beans;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
public abstract class Person extends BaseEntity {

	private static final long serialVersionUID = 5391602905952399502L;

	private String code;

	@Column(nullable = false, unique = true, length = 250)
	private String name;

	private String phone;

	private Date birthDate;

	private String cpfCnpj;

	private String address;

	public Person() {
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String getCpfCnpj() {
		return cpfCnpj;
	}

	public void setCpfCnpj(String cpfCnpj) {
		this.cpfCnpj = cpfCnpj;
	}
}
